package com.tanhua.dubbo.api;

import com.tanhua.domain.mongo.Comment;
import com.tanhua.domain.vo.PageResult;
import org.bson.types.ObjectId;

public interface CommentApi {

    long save(Comment comment) throws NoSuchFieldException, IllegalAccessException;

    long delete(Comment comment) throws NoSuchFieldException, IllegalAccessException;

    PageResult queryByMid(String movementId, Integer page, Integer pagesize);

    void commitComment(Comment c);

    PageResult queryByUser(Integer page, Integer pagesize, Long userId,Integer contentType);

    PageResult queryByPID(Integer page, Integer pagesize, String publishId);
}
